package com.ybkj.daijia.server.model;

import java.math.BigDecimal;

/**
 * 司机充值记录
 *
 * @author Shine
 */

public class DriverRechargeRecord extends Base {

    /**
     * 充值方式
     */
    public static final int RECHARGE_TYPE_ADMIN = 0;// 人工充值
    public static final int RECHARGE_TYPE_ALIPAY = 1;// 支付宝充值
    public static final int RECHARGE_TYPE_WX = 2;// 微信充值
    public static final int RECHARGE_TYPE_ORDER = 3;// 签单支付反提成
    public static final int RECHARGE_TYPE_ORDER_BALANCE = 4;// 余额支付反提成
    public static final int RECHARGE_TYPE_BAOXIAO = 5;// 费用报销
    public static final int RECHARGE_TYPE_MODIFY = 6;// 订单修改金额
    public static final int RECHARGE_TYPE_REBATE = 7;// 推荐提成
    public static final int RECHARGE_TYPE_ORDER_GUOLU = 8;// 过路费
    public static final int ORDER_TYPE_DAIJIA = 0;
    public static final int ORDER_TYPE_ZHUANCHE = 1;
    public static final int ORDER_TYPE_PAOTUI = 2;
    public static final int ORDER_TYPE_ZUCHE = 3;
    /**
     * 操作人
     */
    public static final String RECHARGE_OPERATING_SYS = "系统";// 系统
    /**
     *
     */
    private static final long serialVersionUID = 1L;
    private Long driverId;

    private Driver driver;

    private BigDecimal money;// 充值金额

    private BigDecimal afterMoney;// 充值后余额

    private String memo;// 备注

    private Long orderId;// 订单id

    private String orderNumber;// 订单号

    private Integer rechargeType;// 充值方式

    private String operating;// 操作人

    private Integer orderType;//订单类型 0代驾,1专车,2跑腿,3租车


    public Driver getDriver() {
        return driver;
    }

    public void setDriver(Driver driver) {
        this.driver = driver;
    }

    public Long getDriverId() {
        return driverId;
    }

    public void setDriverId(Long driverId) {
        this.driverId = driverId;
    }

    public BigDecimal getMoney() {
        return money;
    }

    public void setMoney(BigDecimal money) {
        this.money = money;
    }

    public String getMemo() {
        return memo;
    }

    public void setMemo(String memo) {
        this.memo = memo;
    }

    public Long getOrderId() {
        return orderId;
    }

    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }

    public String getOrderNumber() {
        return orderNumber;
    }

    public void setOrderNumber(String orderNumber) {
        this.orderNumber = orderNumber;
    }

    public Integer getRechargeType() {
        if (null == rechargeType) {
            if (null != orderId) {
                return RECHARGE_TYPE_ORDER;
            }
            return RECHARGE_TYPE_ADMIN;
        }
        return rechargeType;
    }

    public void setRechargeType(Integer rechargeType) {
        this.rechargeType = rechargeType;
    }

    public String getOperating() {
        return operating;
    }

    public void setOperating(String operating) {
        this.operating = operating;
    }

    public BigDecimal getAfterMoney() {
        return afterMoney;
    }

    public void setAfterMoney(BigDecimal afterMoney) {
        this.afterMoney = afterMoney;
    }

    public Integer getOrderType() {
        return orderType;
    }

    public void setOrderType(Integer orderType) {
        this.orderType = orderType;
    }


}
